package com.zjq.springsocial.renren.api;

/**
 * 
 * <P>
 * 人人网定义用户基本信息
 * </P>
 * 
 * @author zhongjingquan
 * 
 * @version 0.0.1-SNAPSHOT 2013-7-17下午5:59:58
 */
public class User {

	private Long id;// 用户ID
	private String name;// 用户名
	private Image[] avatar;// 用户头像列表;
	private Integer star;// 是否为星级用户，值“1”表示“是”；值“0”表示“不是”
	private BasicInformation basicInformation;// 用户基本信息
	private School[] education;// 用户学校信息
	private Work[] work;// 工作信息
	private Like[] like;// 喜欢
	private EmotionalState emotionalState;// 感情状态

	public User(Long id, String name, Image[] avatar, Integer star) {
		super();
		this.id = id;
		this.name = name;
		this.avatar = avatar;
		this.star = star;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Image[] getAvatar() {
		return avatar;
	}

	public void setAvatar(Image[] avatar) {
		this.avatar = avatar;
	}

	public Integer getStar() {
		return star;
	}

	public void setStar(Integer star) {
		this.star = star;
	}

	public BasicInformation getBasicInformation() {
		return basicInformation;
	}

	public void setBasicInformation(BasicInformation basicInformation) {
		this.basicInformation = basicInformation;
	}

	public School[] getEducation() {
		return education;
	}

	public void setEducation(School[] education) {
		this.education = education;
	}

	public Work[] getWork() {
		return work;
	}

	public void setWork(Work[] work) {
		this.work = work;
	}

	public Like[] getLike() {
		return like;
	}

	public void setLike(Like[] like) {
		this.like = like;
	}

	public EmotionalState getEmotionalState() {
		return emotionalState;
	}

	public void setEmotionalState(EmotionalState emotionalState) {
		this.emotionalState = emotionalState;
	}

	public User(Long id, String name) {
		super();
		this.id = id;
		this.name = name;
	}

	public static enum EmotionalState {
		INLOVE, // 恋爱中
		OTHER, // 其他
		SINGLE, // 单身
		MARRIED, // 已婚
		UNOBVIOUSLOVE, // 暗恋
		DIVORCE, // 离异
		ENGAGE, // 订婚
		OUTLOVE // 失恋
	}
}
